package com.zhidisoft.blog.admin.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;

public abstract class BaseController {

	@Autowired
	HttpServletRequest request;
	
	public String getCurUser(){
		Object userObj = request.getSession().getAttribute("userId");
		if(userObj==null){
			return "";
		}
		return userObj.toString();
	}
}
